Trypophobia 

Feeling Lucky? Trypophobia is a game developed for those lucky people to put their guessing abilities to the test. Receiving its name from the fear of circles, the object of the game is to eliminate every square without finding the hidden circle randomly placed underneath one of the four squares displayed on the screen. How do you win? Eliminate all of the safe squares three times before finding the red circle three times. As a self-proclaimed lucky guesser, I developed this program to challenge myself to see if I'm really as good as I think.​​​​​​​
Development Process:

To make this game operable with no flaws, I first had to make two different classes, one for the boxes and one for the circles. Each has their own isPressed() function which determines if a box or circle is or is not pressed. Next, I had to create an Array List consisting of two different numbers, 250 and 750. The X and Y coordinates of the hidden circle was determined by these two values randomly. The X value of the hidden circle is either 250 or 750, and the same concept applies to the Y value. Lastly, a winning and losing function was used to determine if all of the boxes were eliminated without finding the circle or if the circle was clicked before all of the other boxes were eliminated.

Round Progression:

Extra Additions:

After being able to accomplish foundational gameplay, I then decided to implement a relatively simple welcome screen, loser screen, and winner screen. As mentioned previously with the switch statements, each of these screens have their own switch statements as well. When the program is started, a nice welcome screen appears that greets the user. Then later on, if the user loses all of their lives, the loser screen will appear, and adversely if the user achieves three wins, the winner screen will appear. 
Gameplay:
Extra Comments -- This game concept was something that I had been thinking of for a while since I learned how to use switch statements and array lists and different loops proficiently. Though the original game idea was supposed to involve a gambling aspect, I was told that it may not be appropriate for a school assignment. Without much of a theme included in the concept of my game, it was difficult to put together a ton of aesthetics. So, I used that remaining time to perfect the actual gameplay in any way that I could. Though extremely time consuming and stressful at times, the process of making this little game was a total blast.
Trypophobia
Published:

Trypophobia

Published:

Creative Fields